<template>
  <router-view v-slot="{ Component, route }">
    <keep-alive>
      <component
        :is="Component"
        v-if="route.meta.keepalive == true"
        :key="route.path"
      />
    </keep-alive>
    <component
      :is="Component"
      v-if="route.meta.keepalive == false"
      :key="route.path"
    />
  </router-view>
</template>

<script>

let param = new URLSearchParams()
param.append('username', 'admin')

// console.log(param.toString())
</script>

<style>
* {
  margin: 0;
  padding: 0;
}
</style>
